<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script src="./jquery.min.js"></script>
<body>
    <button>点击</button>
    <button>点击</button>
    <button>点击</button>
    <button>点击</button>
    <button>点击</button>
    <button>点击</button>
    <button>点击</button>
    <button>点击</button>
    <script>
        $(function() {
            $("button").click(function() {
                // 1 点击当前元素变化背景颜色
                $(this).css('background','pink');
                // 2 其余兄弟去掉背景颜色
                $(this).siblings("button").css("background","");
            })
        })
    </script>
</body>
</html>